﻿Type.registerNamespace("Microsoft.Live.ClientControls.VE.Extenders")
Microsoft.Live.ClientControls.VE.Extenders.SetMapMode=function(element){
Microsoft.Live.ClientControls.VE.Extenders.SetMapMode.initializeBase(this,[element])
this._MapMode
this._mapControlID}
Microsoft.Live.ClientControls.VE.Extenders.SetMapMode.prototype={
initialize : function(){
Microsoft.Live.ClientControls.VE.Extenders.SetMapMode.callBaseMethod(this,'initialize')
$addHandler(this.get_element(),"click",Function.createDelegate(this,this._onClick))
},
get_MapMode : function(){
return this._MapMode
},
set_MapMode : function(value){
this._MapMode=value
},
get_MapControlID : function(){
return this._mapControlID
},
set_MapControlID : function(value){
this._mapControlID=value
},
_onClick : function(e){
var mapcontrol=$find(this._mapControlID)
if(mapcontrol){
mapcontrol.set_MapMode(this._MapMode)}
e.preventDefault()
},
dispose : function(){
$clearHandlers(this.get_element())
Microsoft.Live.ClientControls.VE.Extenders.SetMapMode.callBaseMethod(this,'dispose')}}
Microsoft.Live.ClientControls.VE.Extenders.SetMapMode.registerClass("Microsoft.Live.ClientControls.VE.Extenders.SetMapMode",Sys.UI.Behavior)
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded()
